$(document).ready(function() {
	set_footer_position();
	img_button_bind("#send_button", "imgs/blog/send_text_normal.png", "imgs/blog/send_text_hover.png", "imgs/blog/send_text_active.png");
	button_hover_bind("#follow_button", "imgs/blog/follow.png", "imgs/blog/follow_hover.png");
	button_hover_bind("#home_button", "imgs/blog/home.png", "imgs/blog/home_hover.png");

	$("#home_button").click(function() {
		window.location.href = "blog_home.html";
	});

	$("#follow_button").click(function() {
		var is_follow = $("#follow_button").attr('name');
		if(is_follow == "follow") {
			$("#follow_button").attr('src', 'imgs/blog/un_follow_hover.png');
			button_hover_bind("#follow_button", "imgs/blog/un_follow.png", "imgs/blog/un_follow_hover.png");
			$("#follow_button").attr('name', 'un_follow');
		} else {
			$("#follow_button").attr("src", 'imgs/blog/follow_hover.png');
			button_hover_bind("#follow_button", "imgs/blog/follow.png", "imgs/blog/follow_hover.png");
			$("#follow_button").attr('name', 'follow');
		}
	});

	$("#send_button").click(function() {
		window.location.href = "contribute.html";
	});

	reply_bind();
});
